CREATE TABLE [dbo].[TDRENO_CLIE]
(
[CO_EMPR] [dbo].[TD_VC_002] NOT NULL,
[CO_UNID_CONC] [dbo].[TD_VC_003] NOT NULL,
[CO_CLIE] [dbo].[TD_VC_020] NOT NULL,
[NU_RENO] [dbo].[TD_VC_008] NOT NULL,
[FE_RENO] [dbo].[TD_DT_001] NOT NULL,
[NU_SECU] [dbo].[TD_IN_001] NOT NULL CONSTRAINT [DF__TDRENO_CL__NU_SE__59463169] DEFAULT ((0)),
[NU_ORDE_LETR] [dbo].[TD_IN_001] NULL CONSTRAINT [DF__TDRENO_CL__NU_OR__5A3A55A2] DEFAULT ((0)),
[NU_LETR_CLIE] [dbo].[TD_VC_020] NULL,
[CO_TIPO_DOCU] [dbo].[TD_VC_003] NULL,
[NU_DOCU_CLIE] [dbo].[TD_VC_020] NULL,
[IM_RENO_MDOC] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDRENO_CL__IM_RE__5B2E79DB] DEFAULT ((0)),
[IM_RENO_MREN] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDRENO_CL__IM_RE__5C229E14] DEFAULT ((0)),
[IM_DOCU] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDRENO_CL__IM_DO__5D16C24D] DEFAULT ((0)),
[IM_SALD_DOCU] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDRENO_CL__IM_SA__5E0AE686] DEFAULT ((0)),
[IM_SALD_CONV] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDRENO_CL__IM_SA__5EFF0ABF] DEFAULT ((0)),
[IM_DETA] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDRENO_CL__IM_DE__5FF32EF8] DEFAULT ((0)),
[IM_DETA_NEGA] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDRENO_CL__IM_DE__60E75331] DEFAULT ((0)),
[IM_CONV_DOCU] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDRENO_CL__IM_CO__61DB776A] DEFAULT ((0)),
[ST_CIER_DOCU] [dbo].[TD_VC_001_SINO] NULL CONSTRAINT [DF__TDRENO_CL__ST_CI__62CF9BA3] DEFAULT ('N'),
[CO_ESTA_ORIG] [dbo].[TD_VC_003] NULL,
[TI_SITU] [dbo].[TD_VC_003] NULL,
[CO_USUA_CREA] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TDRENO_CL__CO_US__64B7E415] DEFAULT (suser_sname()),
[FE_USUA_CREA] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TDRENO_CL__FE_US__65AC084E] DEFAULT (getdate()),
[CO_USUA_MODI] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TDRENO_CL__CO_US__66A02C87] DEFAULT (suser_sname()),
[FE_USUA_MODI] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TDRENO_CL__FE_US__679450C0] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TDRENO_CLIE] WITH NOCHECK ADD CONSTRAINT [CK__TDRENO_CL__ST_CI__63C3BFDC] CHECK NOT FOR REPLICATION (([ST_CIER_DOCU]='N' OR [ST_CIER_DOCU]='S'))
GO
ALTER TABLE [dbo].[TDRENO_CLIE] ADD CONSTRAINT [PK__TDRENO_C__FF2DB03E1F0F6E33] PRIMARY KEY CLUSTERED  ([CO_EMPR], [CO_UNID_CONC], [CO_CLIE], [NU_RENO], [FE_RENO], [NU_SECU]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TDRENO_CLIE] ADD CONSTRAINT [FK__TDRENO_CLIE__6B7ABB94] FOREIGN KEY ([CO_EMPR], [CO_UNID_CONC], [CO_CLIE], [NU_RENO], [FE_RENO]) REFERENCES [dbo].[TCRENO_CLIE] ([CO_EMPR], [CO_UNID_CONC], [CO_CLIE], [NU_RENO], [FE_RENO])
GO
